package com.company.service.impl.graph;

import com.company.service.Graph;

/**
 * 三角
 */
public class Triangle extends Graph {
    double a, b, c;

    public void getPerimeter() {
        System.out.println("三角形周长为：" + (a + b + c));
    }

    public Triangle(int a, int b, int c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }
}
